import React from 'react';
import './index.less';
import { useParams } from 'react-router-dom';
import { inject, observer } from 'mobx-react';
import Title from '../../components/title';

function Demo(props: any) {
  console.log('demo proops', props);

  const routeParams: any = useParams();
  const routeTitle = routeParams.title;

  return (
    <div className='demo'>
      <Title title={routeTitle} left={true} />
    </div>
  );
}
export default inject('languageStore', 'rtlStore')(observer(Demo));
